package com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00104;

import com.blankj.utilcode.util.ToastUtils;
import com.example.modelviewpresenter.Presenter.BasterPresenter;
import com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00103.TeenagerDay00103Bean;
import com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00103.TeenagerDay00103Callback;

import java.util.List;

/**
 * 作者:二徒
 * 时间：2021/10/28- 11:45
 * 功能实现：
 */
public class PizzaDay00104Presenter extends BasterPresenter<PizzaDay00104Contion.vier,PizzaDay00104Contion.moder> {


    public PizzaDay00104Presenter(PizzaDay00104Contion.vier iew, PizzaDay00104Contion.moder asd) {
        super(iew, asd);
    }


    public void teenager(String name){
        asd.getmoder(name, new PizzaDay00104Callback() {
            @Override
            public void suees(List<PizzaDay00104Bean.DataBean> dataBeans) {
                iew.getvier(dataBeans);
            }

            @Override
            public void filai(String uet) {
                ToastUtils.showShort("失败"+uet);
            }
        });
    }
}
